package Lecture7;

public class ClassExam6 {

	public static void main(String[] args) 
	{
		
		int n = 1;
		int m = 6;
		System.out.println(factorial(n));
	}

	
	
	public static void printNum (int number)	
	{
		System.out.println(++number);
		if(number == 200)
		{
		return;	
		}
		else
		{
		printNum(number);
		}
	}
	
	public static int factorial(int n)
	{
		if (n <2)
		{
			return 1;
		}
		else 
		{
			return n*factorial(n - 1);
		}
		
	}
	
	
	
}
